<?php
include('connect.php');
header('Content-Type:application/json;charset=utf-8'); 
// $userlat = $_GET['userlat'];
// $userlog = $_GET['userlog'];
$useropenid = $_GET['useropenid'];
// 创建连接


//向数据库中插入数据
$sql = "UPDATE list set msgpowernum=msgpowernum+1 where useropenid='".$useropenid."'";
if ($db->query($sql) === TRUE) {
	$json['msg']="更新授权数量success";
    echo json_encode($json);
}else{
	$json['msg']="更新授权数量fail";
	echo json_encode($json);
}
?>